package com.example.suspensionlist.data;
import com.example.suspensionlist.entity.MultipleItem;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class DataServer {

    private DataServer() {
    }

    public static List<MultipleItem> getMultipleItemData() {
        List<MultipleItem> list = new ArrayList<>();
        Random random = new Random();
        for (int i = 0; i < 20; i++) {
            list.add(new MultipleItem(MultipleItem.LARGE, "Title-"+i));
            for (int j = 0; j < random.nextInt(6); j++) {
                list.add(new MultipleItem(MultipleItem.SMALL, "item: "+j));
            }
        }

        return list;
    }

}